#include<ctype.h>
int count_num(char str[])
{
    int cnt = 0;
    for (int i = 0; str[i] != '\0'; i++)
        if (isdigit(str[i]))    cnt++;
    return cnt;
}